
/* 
  gameBg 1

  ground 2
  pipeGrounp 2

  myBird 3

  gameStart 3
*/

.flyBirdMain {
  width: 100%;
  height: 100%;
  padding-top: 120px;
}
.flyBirdMain .gamebox {
  position: relative;
  background-color: #fff;
  margin: 0 auto;
  overflow: hidden;
  /* cursor: pointer; */
}
@keyframes gameBgMove {
  from {
    left: 0;
  }
  to {
    left: -100%;
  }
}
.flyBirdMain .gameBg {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: url('../../../static/img/flyBirdBg.png');
  background-position: center;
  background-size: cover;
  /* background-image: linear-gradient(0deg,#77b0f1 50%,#323cf7); */
  animation: gameBgMove 0s linear infinite;
  
}
.flyBirdMain .gameBg .cloud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 64px;
  background-image: url('../../../static/img/cloud1.png');
}
.flyBirdMain .gameBg .cloud:nth-child(1) {
  transform: translateX(150px) translateY(150px);
}
.flyBirdMain .gameBg .cloud:nth-child(2) {
  transform: translateX(280px) translateY(70px);
}
.flyBirdMain .gameBg .cloud:nth-child(3) {
  transform: translateX(20px) translateY(30px);
}
/* 云朵镜像 */
.flyBirdMain .gameBg .cloud:nth-child(4) {
  transform: translateX(600px) translateY(150px);
}
.flyBirdMain .gameBg .cloud:nth-child(5) {
  transform: translateX(730px) translateY(70px);
}
.flyBirdMain .gameBg .cloud:nth-child(6) {
  transform: translateX(470px) translateY(30px);
}

.flyBirdMain .myBird {
  position: absolute;
  left: 30px;
  z-index: 3;
  height: 38px;
  width: 50px;
  background-image: url('../../../static/img/bird1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  animation: birdFly 0s linear infinite;
}
@keyframes birdFly {
  0% {
    background: url('../../../static/img/bird1.png');
  }
  25% {
    background: url('../../../static/img/bird2.png');
  }
  50% {
    background: url('../../../static/img/bird3.png');
  }
  75% {
    background: url('../../../static/img/bird1.png');
  }
}

.flyBirdMain .ground {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 120px;
  background-image: url('../../../static/img/ground.png');
  background-repeat: no-repeat;
  background-size: cover;
}
.flyBirdMain .pipeGrounp {
  position: absolute;
  left: 450px;
  height: calc(100% - 119px);
  z-index: 2;
}
.flyBirdMain .pipeGrounp .pipe {
  position: relative;
  box-sizing: border-box;
  width: 80px;
  height: 100px;
  border: 3px solid #2b2b2b;
  /* background-color: bisque; */
  background-image: linear-gradient(90deg, 
		#99bc53 0%, 
		#c0dd6f 12%, 
		#e6fd8b 25%, 
		#9ebf57 49%, 
		#558122 100%);
}
.flyBirdMain .pipeGrounp .pipe::after {
  content: '';
  position: absolute;
  left: -10px;
  width: calc(100% + 20px);
  height: 35px;
  border: 3px solid #2b2b2b;
  border-radius: 2px;
  box-sizing: border-box;
  background-image: linear-gradient(90deg, #99bc53 0%, #c0dd6f 12%, #e6fd8b 25%, #9ebf57 49%, #558122 100%);
}

.flyBirdMain .pipeGrounp .pipe.pipeU {
  height: 351px;
  border-top: none;
}
.flyBirdMain .pipeGrounp .pipe.pipeU::after {
  bottom: -3px;
}
.flyBirdMain .pipeGrounp .pipe.pipeD {
  top: 180px;
  border-bottom: none;
}
.flyBirdMain .pipeGrounp .pipe.pipeD::after {
  top: -3px;
}

.flyBirdMain .block {
  width: 50px;
  height: 50px;
  background-color: #000;
  position: absolute;
}

.flyBirdMain .gameStart {
  position: relative;
  width: 100%;
  height: 100%;
  color: #e1d897;
  z-index: 3;
  user-select: none;
}
.flyBirdMain .gameStart h1 {
  position: absolute;
  top: 180px;
  left: 135px;
  line-height: 80px;
}
